package com.healthdata.controller;

import com.healthdata.service.HospitalCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/hospital-cost")
public class HospitalCostController {

    @Autowired
    private HospitalCostService hospitalCostService;

    @GetMapping("/chart-data")
    public Map<String, Object> getHospitalCostChartData() {
        return hospitalCostService.getHospitalCostChartData();
    }
}